package cn.huiyunche.base.service.enums;

public enum BStowageModelEnum {
    ORDER(10, "订单配载模型"),//订单
    WAYBILL(20, "运单配置模型");//运单


    private final int value;
    private final String text;

    BStowageModelEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static BStowageModelEnum getByValue(int value) {
        for (BStowageModelEnum temp : BStowageModelEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
